﻿@model AutomatedTestDataManagement.Models.TestSuite

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this Test Suite?</h3>
<fieldset>
    <legend>TestSuite</legend>

    <div class="display-label">
         @Html.LabelFor(model => model.SuiteName, "Suite Name")
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SuiteName)
    </div>

    <div class="display-label">
         @Html.LabelFor(model => model.SuiteDescription, "Suite Description")
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SuiteDescription)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <div class="display-field">
        @Html.ValidationSummary(true)
        @if(ViewContext.ViewData.ModelState.IsValid)
        {
            <input type="submit" value="Delete" /> @Html.Encode(" | ")
        }
        else
        {
            <table>
                <tr>
                    <th>Scenario Name</th>
                    <th>Scenario Description</th>
                    <th>Scenario Numer</th>
                </tr>
            @Html.EditorFor(m => m.TestSuiteScenarios, new { Delete = @ViewBag.Title})

            </table>
        }
    @Html.Partial("_TestSuiteNav")
    </div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
